<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	<css file="__ROOT__/static/jquery/css/redmond/jquery-ui-1.10.0.custom.css"/>
    <jquery/> 
    <js file="__ROOT__/static/jquery/js/jquery-ui-1.10.0.custom.min.js"/>
    <js file="__PUBLIC__/js/addshow.js" />
    <css file="__PUBLIC__/css/editshow.css" />
    <script>
        $(function() {
            $( "#tabs" ).tabs();
        });
    </script>

</head>
<body>
	<form action="{|U('save')}" method="post">

		<input type="hidden" name="cid" value="{$hd.get.cid|default:0}"/>
            <div id="tabs">
                <ul>
                    <li><a href="#tabs-1">基本设置</a></li>
                    <li><a href="#tabs-2">模板设置</a></li>
                    <li><a href="#tabs-3">静态规则</a></li>
                </ul>
                <div id="tabs-1">
                    <table class="table2">
                        <tr>
                            <td width="75">栏目名称</td>
                            <td>
                                <input type="text" class="w200" name="catname" value="{$field.catname}"/> <span class="desc_n"></span>
                            </td>
                        </tr>
                        <tr>
                            <td>允许发表文章</td>
                            <td valign="top">
                                <input type="radio" value="1" name="issend" <if value="{$field.issend==1}">checked="checked"</if>/>是&nbsp&nbsp&nbsp<input type="radio" value="0" name="issend" <if value="{$field.issend==0}">checked="checked" </if>/>否
                            </td>
                        </tr>
                        <tr>
                            <td>静态目录</td>
                            <td>
                                <input type="text" class="w200" name="catdir" value="{$field.catdir}"/> <span class="desc_d"></span>
                            </td>
                        </tr>
                        <tr>
                            <td>关键字</td>
                            <td>
                                <input type="text" class="w200" name="keywords" value="{$field.keywords}"/> <span class="desc_k"></span>
                            </td>
                        </tr>
                        <tr>
                            <td>栏目描述</td>
                            <td>
                                <textarea name="description" class="w300 h100">{$field.description}</textarea>
                            </td>
                        </tr>
                    </table>
                </div>
                <div id="tabs-2">
                    <table class="table2">
                        <tr>
                            <td width="75">栏目模板</td>
                            <td>
                                <input type="text" name="cattpl" class="w200" value="{$field.cattpl}"/><button class="bt2">选择模板</button><span class="desc"></span>
                            </td>
                        </tr>
                        <tr>
                            <td>内容页模板</td>
                            <td>
                                <input type="text" name="arctpl" class="w200" value="{$field.arctpl}"/><button class="bt2">选择模板</button><span class="desc"></span>
                            </td>
                        </tr>
                    </table>
                </div>
                <div id="tabs-3">
                    <table class="table2">
                        <tr>
                            <td width="75">栏目静态</td>
                            <td>
                                <input type="text" name="cathtml" class="w200" value="{$field.cathtml}"/><span class="desc">{htmlpath}静态根目录 {catdir}列表目录 {cid}栏目ID</span>
                            </td>
                        </tr>
                        <tr>
                            <td>内容页静态</td>
                            <td>
                                <input type="text" name="archtml" class="w200" value="{$field.archtml}"/><span class="desc">{htmlpath}根目录 {catdir}列表目录  {y}年 {m}月 {d}日 {aid}文章ID</span>
                            </td>
                        </tr>
                    </table>
                </div>
                <div style="padding-left:20px;">
                    <input type="submit" class="bt1" value="提交修改"/>
                </div>
            </div>

        </form>
</body>
</html>